﻿using System;
using System.Collections.Generic;
using System.Text;
using Model.WebService;

namespace Model.Task
{
    public class TaskDefine
    {
        private TransferMode mode_ = TransferMode.W;
        private bool isUpdate_=true;
        /// <summary>
        /// ID
        /// </summary>
        public string ID { get; set; }
        /// <summary>
        /// 动作
        /// </summary>
        public string Action { get; set; }

         
        /// <summary>
        /// 酒店地址
        /// </summary>
        public string Hotelid { get; set; }
        /// <summary>
        /// 接口地址
        /// </summary>
        public string Interface { get; set; }
        /// <summary>
        /// 传输模式
        /// </summary>
        public TransferMode Mode 
        {
            get { return mode_; }
            set { mode_ = value; }
        }
        /// <summary>
        /// 数据源 用于获取数据
        /// </summary>
        public string DataSource { get; set; }
        /// <summary>
        /// 成功后需要执行的sql语句
        /// </summary>
        public string Success_DataSource { get; set; }
        /// <summary>
        /// 失败后需要执行的sql语句
        /// </summary>
        public string Error_DataSource { get; set; }
        /// <summary>
        /// 主键
        /// </summary>
        public string[] PrimaryKey { get; set; }
        /// <summary>
        /// 酒店表名
        /// </summary>
        public string HotelTableName
        {
            get;
            set;
        }
       /// <summary>
        /// 中央表名
       /// </summary>
        public string CenterTableName
        {
            get;
            set;
        }

        public bool IsUpdate
        {
            get { return isUpdate_; }
            set { isUpdate_ = value; }
        }

        /// <summary>
        /// 用于替换的参数的 字典
        /// </summary>
        public Dictionary<string, string> MacroDict { get; set; }
    }
}
